<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="app">
    <a v-bind:href="href":title="title">{{title}}</a>
    <button id="change" @click="change">改变</button>
</div>
<script>
    const app = new Vue({
        el:"#app",
        data:{
            href:'http://www.baidu.com',
            title:'百度',
        },
        methods:{
            change:function () {
                this.href="http://www.163.com";
                this.title = "163邮箱";
            }
        }
    });
</script>
</body>
</html>